home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xml;
-
- import java.io.StringWriter;
-
- public class DTDMLWriter$NotationProxy extends DTDMLWriter.DeclProxy {
- // $FF: synthetic field
- final DTDMLWriter this$0;
- NotationDeclaration decl;
-
- DTDMLWriter$NotationProxy(DTDMLWriter var1) {
- super((DTDMLWriter)null);
- this.this$0 = var1;
- }
-
- DTDMLWriter$NotationProxy(DTDMLWriter var1, NotationDeclaration var2) {
- super((DTDMLWriter)null);
- this.this$0 = var1;
- this.setDecl(var2);
- }
-
- void setDecl(NotationDeclaration var1) {
- this.decl = var1;
- super.setDecl(var1);
- }
-
- public void write(SXE var1, boolean var2) {
- var1.writeElem("Notation");
- var1.writeAttr("Name", this.decl.getName());
- if (this.decl.getSystemID() != null) {
- var1.writeAttr("SystemLiteral", this.this$0.schema.expandPERefs(this.decl.getSystemID().toSource(), this.decl));
- }
-
- if (this.decl.getPublicID() != null) {
- var1.writeAttr("PublicLiteral", this.this$0.schema.expandPERefs(this.decl.getPublicID(), this.decl));
- }
-
- var1.writeElem("dtdsource", -1);
- var1.writeRawText("<![CDATA[\r\n");
-
- try {
- StringWriter var3 = new StringWriter();
- this.decl.write(var3);
- String var4 = this.this$0.makeHTMLFriendly(var3.toString());
- var1.writeRawText(var4);
- } catch (Exception var5) {
- }
-
- var1.writeRawText("]]>\r\n");
- var1.flush("dtdsource");
- if (var2) {
- ((DTDMLWriter.DeclProxy)this).writeComments(var1);
- }
-
- }
- }
-